<%@ include file = "/common/ini.jsp"%> 
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%> 
<%@ include file = "/common/_currUser_Infor.jsp"%> 
<%@ include file = "/common/_vr.jsp"%> 
<%@ include file = "/js/_js_for_select.jsp"%> 
<%@ include file = "/js/_js_for_checkbox.jsp"%> 

<%
    // 定义名称
    ExamQuestion examQuestion = null;
    Object[] rss = null;
    String content = "";
	String resultContent0 = "";
	String resolution = "";

    TypeManager typeManager = (TypeManager)applicationContext.getBean("typeManager");
    Type subjectQuestType = (Type)typeManager.get(request.getParameter("subjectInQuestTypeId"));            
    // 当前题型
    Type currQuestType = (Type)typeManager.get(request.getParameter("questTypeId"));
    String title = "新增" + currQuestType.getSuperType().getName() + currQuestType.getName();
    // 当前科目
    Type currSubject = typeManager.getByCode(CodeUtil.subjectQuestTypeCode2SubjectCode(currQuestType));
    logger.debug("当前科目：" + currSubject.getName());
%>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<script>
    function submitData(obj)
    {
        validate();
		obj.disabled = true;
		if(isAllValidated())
		{
            selectAll($('knowledgePointId'));
			detailForm.serviceURL.value = "exammanager.examquestion.AddSubjectiveExamQuestionService";
			detailForm.submit();   
		}
    }
    function reset()
    {
        initCommon();
    }
       
    function bodyLoadJS()
    {
        // 被聚焦的控件
        $("addKpInput").focus(); 
    }
</script>
<%@ include file = "/common/detail/_OnForm.jsp"%> 
<%@ include file = "../_detail_top.jsp"%> 
<%@ include file = "_detail.jsp"%>
<%@ include file = "../_detail_bottom.jsp"%>
<%@ include file = "/common/detail/_UnderFom_OnButton.jsp"%>
          <input  type="button" id="submitButton" onclick="submitData(this)" value="提交" >
          &nbsp;&nbsp;<input  type="button" onclick="reset()" value="重置">
          &nbsp;&nbsp;<input  type="button" onclick="goback()" value="返回">
<%@ include file = "/common/detail/_UnderFom_underButton.jsp"%>
